/*===============================
 *Title      :  EncryptListener.java
 *Created  :[ 2012-3-22 下午3:46:18 ] by fanlt
 * ==============================
 * Description:   
 * Copyright  :  Copyright (c) 2012
 * Company    :  Flyfot
 * @author  <a href="fanlt@flyfot.cn">fanlt</a>
 *
 */
package org.zxstudio.encrypt.task;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

/**
 * @author fan
 * 
 */
public  class EncryptListener {

	final private ArrayList<String> mSucessedFiles = new ArrayList<String>();
	final private ArrayList<String> mFailedFiles = new ArrayList<String>();
	final private ArrayList<File> mEncryptFiles = new ArrayList<File>();
	final private ArrayList<File> mEncryptFolders = new ArrayList<File>();

	public interface CallBack {
		public void notifyResult(List<String> sucessedFiles,
				List<String> failedFiles);
		public void finish();
	}

	public void addSucess(String path) {
		mSucessedFiles.add(path);
	}

	public void addFailed(String path) {
		mFailedFiles.add(path);
	}

	public ArrayList<String> getSucess() {
		return mSucessedFiles;
	}

	public ArrayList<String> getFailed() {
		return mFailedFiles;
	}
}
